package org.feng.feign;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.feng.base.entity.Result;
import org.feng.entity.Role;
import org.feng.service.RoleService;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 冯帅
 * @des TODO
 * @date 2022/2/7 9:56
 * @email 15612509687@163.com
 */
@Service
@AllArgsConstructor
@RestController
@Slf4j
public class RoleFeignImpl implements RoleFeign {

    private final RoleService roleService;

    @Override
    public Result<Role> getById(Long id) {
        return Result.success(roleService.getById(id));
    }
}
